home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Source Code
/
Visual Basic Source Code.iso
/
vbsource
/
visds
/
resiztst.dsc
< prev
next >
Wrap
Text File
|
1999-05-02
|
464b
|
21 lines
title Resizable window example
DIALOG CREATE,Resizable window,-1,0,240,160,RESIZABLE
DIALOG ADD,MENU,&File,E&xit
DIALOG ADD,STATUS,SB
DIALOG ADD,EDIT,ED,0,1,238,136,,MULTI,WRAP
DIALOG SHOW
rem calculate height offset for edit control
%%dh = @sum(2,@dlgpos(SB,H))
:evloop
wait event
%E = @event()
goto %E
:RESIZE
PARSE "%H;%W",@dlgpos(,HW)
DIALOG SETPOS,ED,0,1,@diff(%W,2),@diff(%H,%%dh)
goto evloop
:CLOSE
:ExitMENU
Exit